import fetch from './request.js'

const api = {}
api.baseUrl = 'https://admin.autobbc.cn/prod-api/' //正式
// api.baseUrl = 'http://121.196.198.104/mifeng-test-api/'
// api.baseUrl = 'http://121.196.198.104/mifeng-prodtest-api/' //测试
// api.baseUrl = 'http://192.168.10.218:8092' //穿透

//捷图app_保证金_提现_查询4s店/保证金信息
api.getCallinfoInfo = params => fetch.request("/api/jietuappaucdeposirecharge/get-callinfo-info", params, "POST", false,
	false)

//捷图app_余额_账单
api.billList = params => fetch.request("/api/jietuappaucdeposirecharge/bill", params, "POST", false,
	false)

//获取协议
api.getAgreement = params => fetch.request("/api/agreement/getAgreement/" + params, {}, "get", false,
	false)

//提交开票信息!
api.submitFapiaoInfo = params => fetch.request("/api/jietuappsinvoice/submitFapiaoInfo", params, "post", false,
	false)
//查询开标记录(发票)列表
api.jietuappsinvoiceList = params => fetch.request("/api/jietuappsinvoice/list", params, "POST", false,
	false)
//开票信息回显!
api.getFapiaoInfo = params => fetch.request("/api/jietuappsinvoice/getFapiaoInfo", params, "post", false,
	false)
//下载发票
api.downloadFapiao = params => fetch.request("/api/jietuappsinvoice/downloadFapiao", params, "post", false,
	false)
//重开发票
api.reinVoice = params => fetch.request("/api/jietuappsinvoice/reinVoice", params, "post", false,
	false)

//获取发票详情 fapiaoId
api.getBackFapiao = params => fetch.request("/api/jietuappsinvoice/getBackFapiao", params, "get", false,
	false)
//消费记录
api.consumptionHistory = params => fetch.request("/api/jietuappsinvoice/consumption-history", params, "post", false,
	false)

api.selectOrderAndAmount = params => fetch.request("/api/jietuappsinvoice/selectOrderAndAmount", params, "post", false,
	false)

//捷图app_保证金_查询账户信息
api.getAccountInfo = params => fetch.request("/api/jietuappaucdeposirecharge/get-account-info", params, "post", false,
	false)

//////////////////////////////////////账单///////////////////////////////////////////

//充值记录
api.rechargeList = params => fetch.request("/api/jietuappaucdeposirecharge/rechargeList", params, "post", false,
	false)
//提现记录
api.withdrawalList = params => fetch.request("/api/jietuappaucdeposirecharge/withdrawalList", params, "post", false,
	false)

///////////////////////////////////////充值模块///////////////////////////////////////

//捷图app_保证金_充值
api.recharge = params => fetch.request("/api/jietuappaucdeposirecharge/recharge", params, "post", false,
	false)
//捷图app_保证金_提现
api.withdrawal = params => fetch.request("/api/jietuappaucdeposirecharge/withdrawal", params, "post", false,
	false)
//捷图app_保证金_提现_绑定/换绑微信
api.bindwx = params => fetch.request("/api/jietuappaucdeposirecharge/bind-rebind-wx", params, "post", false,
	false)

//公众号授权登录 PC端使用
api.pcBindwx = params => fetch.request("/frequency/callinfo/bind-rebind-wx", params, "post", false,
	false)

//发送验证码
api.sendMsg = params => fetch.request("/api/sms/send/msg", params, "post", false,
	false)

//手机号验证码
api.checkMobile = params => fetch.request("/api/jietuappaucdeposirecharge/check-mobile", params, "post", false,
	false)

//字典表
api.getdict = params => fetch.request("/system/dict/data/type/" + params, {}, "get", false,
	false)

//捷图app_保证金_充值_获取开户名称
api.getaccountname = params => fetch.request("/api/jietuappaucdeposirecharge/get-account-name", params, "post", false,
	false)


//////////////////////////置换兑换//////////////////////////
// 查询置换兑换列表
api.exchangeList = params => fetch.request("/api/v1/dataauditExchange/exchangeList", params, "post", false,
	false, true)
//查询置换兑换日志列表
api.exchangeOperLogList = params => fetch.request("/api/v1/dataauditExchange/exchangeOperLogList", params, "post",
	false,
	false, true)
//获取置换兑换详细信息
api.getexchangeById = params => fetch.request("/api/v1/dataauditExchange/" + params, {}, "get", false,
	false, true)
//上传凭证
api.uploadVoucher = params => fetch.request("/api/v1/dataauditExchange/uploadVoucher", params, "post",
	false,
	false, true)
//重新上传凭证
api.againUploadVoucher = params => fetch.request("/api/v1/dataauditExchange/againUploadVoucher", params, "post",
	false,
	false, true)

api.getDictOne = params => fetch.request("/system/dict/data/dictOne/" + params, {}, "post",
	false,
	false, true)

//////////////////////////////账号管理//////////////////////////////////////
api.bankAccountPage = params => fetch.request("/api/v1/bankAccount/bankAccountPage", params, "post", false,
	false, true);
api.addBankAccount = params => fetch.request("/api/v1/bankAccount/addBankAccount", params, "post", false,
	false, true);
api.editBankAccount = params => fetch.request("/api/v1/bankAccount/editBankAccount", params, "post", false,
	false, true);
api.getBankAccountById = params => fetch.request("/api/v1/bankAccount/bankAccountDetail/" + params, {}, "post", false,
	false, true);
//////////////////////////////实名认证///////////////////////////////////////////////
api.addRealAuth = params => fetch.request("/api/v1/realAuth/addRealAuth", params, "post", false,
	false, true);
api.realAuthDetail = params => fetch.request("/api/v1/realAuth/realAuthDetail", params, "post", false,
	false, true);
//ocr识别
api.recognizeBusinessLicense = params => fetch.request("/api/v1/orc/recognizeBusinessLicense?image=" + params, {},
	"post",
	false,
	false, true);
//查询当前用户今日提现次数
api.withdrawalCount = params => fetch.request("/api/v1/withdrawal/withdrawalCount", params, "post", false,
	false, true);
//捷途h5_保证金收支记录详情
api.depositLogDetail = params => fetch.request("/api/v1/aucDeposit/depositLogDetail/" + params, {}, "post", false,
	false, true);
//捷途h5_提现记录列表详情
api.withdrawalDetail = params => fetch.request("/api/v1/withdrawal/withdrawalDetail/" + params, {}, "post", false,
	false, true);
//捷途h5_充值记录列表详情
api.rechargeDetail = params => fetch.request("/api/v1/aucdeposirecharge/rechargeDetail/" + params, {}, "post", false,
	false, true);

export default api